package com.hhs.storage.service;

import com.hhs.storage.bean.Comsumer;
import com.hhs.storage.bean.InputParam;
import com.hhs.storage.bean.Region;
import com.hhs.storage.bean.TypeDic;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hhs
 * @since 2022-12-08
 */
public interface TypeDicService extends IService<TypeDic> {

    Map<String, Object> getAll(String keyWord,String typeId);

    Map<String, Object> addOrUpdate(TypeDic typeDic);

    Map dele(String id);
    Map<String, Object> query(TypeDic typeDic, InputParam inputParam);

    Map<String, Object> getAllFromDb(TypeDic typeDic, InputParam inputParam);
    Map<String, Object> getAllFromDb2(TypeDic typeDic, InputParam inputParam);
    Map<String, Object> getUpDown(TypeDic typeDic, InputParam inputParam);
    Map<String, Object> editUpDown(TypeDic typeDic, InputParam inputParam);
//    Map<String, Object> query(TypeDic typeDic, InputParam inputParam);

    Map deleForBussiness(String id);

    Map allByKey(String keyWord);

    //特殊用，用于数据的转换，前端不用修改代码
    //将字典数据转成区域对象
    Region formatRegion(String id);

    Map<String, Object> changeState(TypeDic typeDic);

    Map<String, Object> getByDepart(TypeDic typeDic);


}
